package com.itheima.controller;

import com.itheima.common.PageBean;
import com.itheima.common.R;
import com.itheima.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    OperateLogService operateLogService;

    @GetMapping("/page")
    public R page(Integer page, Integer pageSize) {

        PageBean pageBean = operateLogService.page(page, pageSize);
        return R.ok(pageBean);
    }
}
